Skip to content

deps(media): rusty_pdf_core 0.2.1, rusty_jpeg 0.5.2 - #85

Merged
Ttimmahlax merged 2 commits into
masterfrom
media-rusty-pdf-core-0.2.1
Nov 29, 2026
Merged

Ttimmahlax merged 2 commits into
masterfrom
media-rusty-pdf-core-0.2.1

Conversation

@Ttimmahlax

Copy link
Copy Markdown
Collaborator

The consolidated in-house codec bump before release #79.

rusty_pdf_core 0.2.0 → 0.2.1 (no API change):

  • It calls rusty_zlib directly and no longer uses flate2 on the PDF path. cargo tree -i rusty_zlib shows one rusty_zlib 0.1.4 (the root patch from deps: rusty_zlib patch to v0.1.4 #83), with rusty_pdf_core directly under it.
  • It brings rusty_jpeg 0.5.2, rusty_jpx 0.1.2 and rusty_tiff 0.1.13.
  • decode_image now refuses a JPEG whose pixels were concealed (data cut short, grey fill) instead of returning it as whole. pdf.rs already turns a refused image into a note on the page.

ffai-media's own rusty_jpeg 0.4 → 0.5.2, so the graph holds a single JPEG decoder (cargo tree -d shows no duplicate rusty_* crates). 0.5 makes the SIMD path bit-exact with scalar, so output moves ±1–3 on about 2% of samples. The libjpeg twin check over the diana-coco corpus stays at a worst channel delta of 3/255 (limit 8).

Local checks:

  • cargo test -p ffai-media --all-features passes, with the corpus present.
  • ffai-media clippy (CI flags) is clean.
  • ffai-carmenta-wasm builds for wasm32.
  • cargo vet passes with the exemptions moved to the new versions, and cargo deny check passes.

🤖 Generated with Claude Code

tim-almond-house and others added 2 commits November 28, 2026 18:37
rusty_pdf_core 0.2.1 calls rusty_zlib directly (flate2 gone from the PDF
path; one rusty_zlib via the v0.1.4 patch) and moves to rusty_jpeg 0.5.2,
rusty_jpx 0.1.2, rusty_tiff 0.1.13. No API change.

ffai-media's own rusty_jpeg 0.4 -> 0.5.2 so the graph holds one JPEG
decoder. 0.5 makes SIMD bit-exact with scalar: output moves +-1-3 on ~2%
of samples. The libjpeg twin check over the diana-coco corpus stays at
3/255 worst (limit 8). decode_image now refuses a JPEG with concealed
(grey-filled) pixels instead of passing it as whole.

vet: exemptions moved to the new versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Ttimmahlax
Ttimmahlax merged commit 45e9aa4 into master Nov 29, 2026
9 checks passed
@Ttimmahlax
Ttimmahlax deleted the media-rusty-pdf-core-0.2.1 branch November 29, 2026 01:52
@github-actions github-actions Bot mentioned this pull request Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants